<?php $SS = new Zend_Session_Namespace ('Language');

$lang = $SS->language;
$langYourcart = "Giỏ hàng của bạn";
if($lang == "en"){
$langYourcart = "Your cart";  
}elseif($lang == "chi"){
$langYourcart = "您的購物車";
}
?>
<div class="span8">
<div class="head-content"><?php echo $langYourcart;?> </div>
<div class="radius-box-product-middle">
			<div id="content-cart-order">
                
            </div>
            <?php if($this->checkOrder == 1) {?>
                    <div class="row form-contact" style="margin-left: 200px;">
                        <?php echo $this->form;?>
                    </div>
            <?php } ?>
		</div><!-- end radius-box-product-middle -->
</div>
<script type="text/javascript">
    $(document).ready(function() {
        $('#content-cart-order').load('/orders/cart-ajax');
    });
</script>
<script>
    function deleteCart(id) {
        var answer = confirm("Bạn có muốn xóa sản phẩm này không")
        if (answer){
                $.ajax({
                type: "GET",
                url: "/orders/delpro/",
                data: "id="+id,
                success: function(data){
                    $('#content-cart-order').load('/orders/cart-ajax');
                }
            });
        }
    return false;
    } 
    
</script>
<script>
function change(id) {
    var value = $('#number'+id).val();
    $.ajax({
                type: "GET",
                url: "/orders/change/",
                data: "id="+id+"&value="+value,
                success: function(data){
                  if(data != "") {
                    alert(data);
                  }
                   $('#content-cart-order').load('/orders/cart-ajax');
                }
     });
}
</script>